<%--
  Created by IntelliJ IDEA.
  User: song
  Date: 15-12-10
  Time: 上午11:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <meta charset="utf-8">
    <title>FAQ</title>
    <mystyle>
    <link rel="stylesheet" href="/public/css/faq.css">
    </mystyle>
</head>
<body>
<div id="faqTitle">
    <h1>漫庭常见问题解答</h1>
    <h2>How can I help you?</h2>
</div>

    <div class="faqContent">
        <form action="/faq/front_list" method="post">
            <textarea name="question" placeholder="请输入问题..."></textarea>
            <input type="submit">
        </form>
        <ul class="answerList">
            <c:forEach items="${faqDTOList}" var="faq">
            <li>
                <p><span>Q</span>${faq.question} </p><i>+</i>
                <div>
                    <p><span>A</span>${faq.answer} </p>
                </div>
            </li>
            </c:forEach>
        </ul>
    </div>
</body>
</html>